GtkRange: Fix an event propagation issue
authorMatthias Clasen <mclasen@redhat.com>
Sat, 27 Sep 2014 02:21:11 +0000 (22:21 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 27 Sep 2014 02:21:11 +0000 (22:21 -0400)
commite586dd2571a0ba6b97cd5667b9fbcd2ef0deb68e
tree6637a57f7bc4eda25723ed375a1012d5d51092bb
parentfd49340edb2f3930c311edc41744c031373a57f3
GtkRange: Fix an event propagation issue

The scale in the selectable listbox in page 2 of gtk3-widget-factory
has the flaw that the row is getting selected even when one only
interacts with the scale - unlike e.g. the checkbutton and button
further down in the listbox.

The problem is that GtkRange is trying to claim the sequence for
the drag gesture from the ::pressed handler of a multipress
gesture. Since the drag gesture hasn't seen the sequence at this
point, that is ineffective.

The fix here is to rearrange the gestures so that the multipress
gesture sees the sequence before the drag gesture, and then
claim the sequence from the ::drag-begin handler.
gtk/gtkrange.c